using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;

namespace TextEditor
{
    public class A_SetHeadInfo : A_Action
    {
        public override string ActionName()
        {
            return "headinfo";
        }

        public override bool Execute()
        {
            //using (HeadInfo headInfo = new HeadInfo ())
            //{
            //    headInfo.ShowDialog();
            //    base.OwnerDocument.ht = headInfo.ht ;
            //}
            using (SetHosName HospitalName = new SetHosName())
            {
                HospitalName.ShowDialog();
                if (HospitalName.DialogResult == System.Windows.Forms.DialogResult.OK)
                {
                //    base.myOwnerDocument.hospitalName = HospitalName.hospitalName;
                }
            }
            return true;
        }

        public override bool isEnable()
        {
            return true;
        }
    }
}
